import fetch from 'common/src/utils/fetch';
/**
 * 新增
 * @param {*} data
 */
export function create(data) {
    return fetch({
        url: '/api/textbookservice/textbookCorrection',
        method: 'post',
        data
    });
}
/**
 * 整改
 * @param {*} data 
 */
export function updateById(data) {
    return fetch({
        url: '/api/textbookservice/textbookCorrection',
        method: 'put',
        data
    });
}
/**
 * 审批
 * @param {*} data 
 */
export function approve(data) {
    return fetch({
        url: '/api/textbookservice/textbookCorrection/approve',
        method: 'put',
        data
    });
}
/**
 * 查看
 * @param {*} data 
 */
export function getById(data) {
    return fetch({
        url: '/api/textbookservice/textbookCorrection/'+data,
        method: 'get'
    });
}
/**
 * 列表(分页/不分页)
 * @param {*} data 
 */
export function queryListByPage(data) {
    return fetch({
        url: '/api/textbookservice/textbookCorrection/list',
        method: 'post',
        data
    });
}
/**
 * 审批记录
 * @param {*} data 
 */
export function approveList(data) {
    return fetch({
        url: '/api/textbookservice/textbookCorrection/approveList/'+data,
        method: 'get'
    });
}
/**
 * 导出列表
 */
export function exportList(data) {
    return fetch({
        url: '/api/textbookservice/textbookCorrection/excel',
        method: 'post',
        showMask: false,
        data
    });
}
